const Koa = require("koa");
require("./dotenv.js");
const resgisterRouters = require("../router/index.js");
const bodyParser = require("koa-bodyparser");
const static = require("koa-static");
const { STATIC_PATH, UPLOAD_PATH } = require("../config/path.js");

const app = new Koa();
app.use(bodyParser());
app.use(static(STATIC_PATH));
resgisterRouters(app);

module.exports = app;
